package ent.parent.com.parent.test;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.pp.ent.base.BaseActivity;
import com.pp.ent.core.manage.UIHandler;
import com.pp.ent.db.DbManager;
import com.pp.ent.view.annotation.ContentView;
import com.pp.ent.view.annotation.Inject;
import com.pp.ent.view.annotation.OnClick;
import com.pp.ent.view.annotation.ViewInject;

import ent.parent.com.parent.LoginService;
import ent.parent.com.parent.R;

public class MainActivity extends BaseActivity {
    private TextView textView;
    private LoginService loginService;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView = (TextView) findViewById(R.id.tex_view);
        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(MainActivity.this,"Hello,I am test",Toast.LENGTH_SHORT).show();
            }
        });
        loginService = new LoginService();
        textView.setText("test");
        loginService.login();
    }
}
